package br.com.sms.teste;

import javax.mail.Address;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;

import org.junit.Test;

import br.com.sms.email.SendMail;
import br.com.sms.excecao.SmsException;

public class TestEnvio {
	
	@Test
	public void enviar() throws AddressException, SmsException{
		SendMail sendMail = new SendMail();
		Address[] ads = new Address[2];
		
		Address ad = new InternetAddress("lfrancisco@dba.com.br");
		Address ad1 = new InternetAddress("pmota@dba.com.br");
		ads[0] = ad;
		ads[1] = ad1;
		sendMail.sendMail(ads, "Test msg", "asdfasdfasf");
	}
}
